package com.fancy.controller;

import com.fancy.pojo.category.Area;
import com.fancy.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/area")
public class AreaController {

    @Autowired
    AreaService areaService;

    @RequestMapping("/selectAllArea")
    public List<Area> selectAllArea(){
        return areaService.selectAllArea();
    }
}
